package day13.thread04;

/**
 * @author Xiao
 * @date 2021/8/6
 */
@SuppressWarnings("all")
public class Production {

    private boolean flag;
//    private boolean flag = false;
    private int count;
//    private int count = 10;
    private final Object lock = new Object();

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getLock() {
        return lock;
    }

    public Production(boolean flag, int count) {
        this.flag = flag;
        this.count = count;
    }

    public Production() {
        this(false, 10);
    }
}
